<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>溢出</title>
  <style>
    div{
      width: 200px;
      height: 200px;
      border: 1px solid red;
        overflow: scroll;
    }
    img{
        width: 100px;
        vertical-align: bottom;
    }
  </style>
</head>
<body>
<input type="text"><img src="../b.png" alt="">
<div>
  <img src="../b.png" alt="">
</div>
</body>
</html>